home *** CD-ROM | disk | FTP | other *** search
- Path: news.compuserve.com!newsmaster
- From: <72421.1131@compuserve.com>
- Newsgroups: comp.lang.c++
- Subject: Constructor Called for Global Class Instance
- Date: 7 Feb 1996 03:04:18 GMT
- Organization: CompuServe Incorporated
- Message-ID: <4f94ri$12p@dub-news-svc-3.compuserve.com>
- NNTP-Posting-Host: ad32-170.compuserve.com
- Content-Type: text/plain
- Keywords: C++ Constructor
- Content-length: 520
- X-Newsreader: AIR Mosaic (16-bit) version 4.00.08.32
-
-
- A quick question pertaining to the following snippet of code:
-
- // Snipet
- #include "MyClass.h"
- MyClass junk;
-
- int main(int ac, char **av)
- {
-
- etc....
-
- Given that there is a constructor MyClass(), if I load this sucker up in a debugger
- and set a breakpoint in the constructor function, should I break in the function? In
- other words, does the constructor of a class get called when the class is
- defined outside of an executed function?
-
- And if this is a RTF FAQ, sorry; please point to the FAQ.
-
- TIA
- TIA
-